package org.kernelab.basis;

/**
 * The Mapper interface is to achieve the mapping operation.
 * 
 * @author Dilly King
 * 
 * @param <V>
 *            The generic type of the elements to be mapped in a certain
 *            Collection.
 * @param <M>
 *            The generic type of the mapping result.
 */
public interface Mapper<V, M>
{
	/**
	 * To map a value into another value.
	 * 
	 * @param value
	 *            The certain to be mapped.
	 * @return A mapped value.
	 * @see Tools#map(java.util.Collection, Mapper, java.util.Collection)
	 */
	public M map(V value);
}
